package com.yiyi.credit.manage.abutment.common.utils;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;


public class TokenUtil {


    public static Cookie getCookie(HttpServletRequest request) {
        Cookie[] cookies = request.getCookies();

        if (cookies != null) {
            for (Cookie cookie : cookies) {
                if ("SSO_ID".equals(cookie.getName())) {
                    return cookie;
                }
            }
        }
        return null;
    }


}
